package com.lin.constant;
/**
 * @program: blog
 * @description: redis常量
 * @author: Lin
 * @create: 2020-04-03 12:28
 **/
public class RedisConstant {

    /**
     * shiro用户权限缓存后缀
     */
    public static final String SHIRO_PERMISSIONS_SUFFIX =":shiro:permissions";

    /**
     * shiro用户角色缓存后缀
     */
    public static final String SHIRO_ROLES_SUFFIX =":shiro:roles";

    /**
     * shiro 缓存时间
     */
    public static final Long SHIRO_EXPIRE = 1000 * 60 * 60 * 2L;


    /**
     * ACCESS_TOKEN 后缀
     */
    public static final String JWT_ACCESS_TOKEN_SUFFIX =":accessToken";


    /**
     * ACCESS_TOKEN 15分钟 过期时间
     */
    public static final Long JWT_ACCESS_TOKEN_EXPIRE =  1000 * 60 * 60 * 24 * 15L;


    /**
     * category tree 所有分类 树状类型
     */
    public static final String CATEGORY_TREE ="categoryTree";

    /**
     * Category_TREE  过期时间  7天
     */
    public static final Long CATEGORY_TREE_EXPIRE =  60  * 60 * 24 *  7L;

    /**
     * USER_INFO_SUFFIX 用户信息前缀
     */
    public static final String USER_INFO_SUFFIX = ":userInfo";

    /**
     * USER_INFO_SUFFIX 过期时间  1小时
     */
    public static final Long USER_INFO_PRE_EXPIRE = 60  * 60  *  1L;


    /**
     * UserLike部分
     */

    /**
     * 保存用户点赞数据的key
     */
    public static final String MAP_KEY_USER_LIKED = "MAP_USER_LIKED";

    /**
     * 保存用户被点赞数量的key
     */
    public static final String MAP_KEY_USER_LIKED_COUNT = "MAP_USER_LIKED_COUNT";

    /**
     * 保存文章浏览数量的key
     */
    public static final String MAP_KEY_ARTICLE_LOOKS_COUNT = "MAP_ARTICLE_LOOKS_COUNT";




}
